<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="HeatMeterInfo!save.action" method="post" name="form" enctype="multipart/form-data">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="16%" align="right"><font color="red">*</font>所属楼栋：</th>
      <td width="84%"><select name="model.build_id" dataType="Require" msg="请选择">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="buidList" var="cur">
      			 <option value="<s:property value="#cur.ID"/>" <s:if test="model.build_id==#cur.ID">selected="selected"</s:if>><s:property value="#cur.B_NAME"/></option>
      		</s:iterator>
      	</select></td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>热量表表号：</th>
      <td width="84%"><input name="model.meter_num" type="text" class="webinput" size="25" dataType="Require" msg="请选择" value="<s:property value='model.meter_num'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>计算关系：</th>
      <td width="84%">
      	<select name="model.cal_type" dataType="Require" msg="请选择">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.cal_type==1">selected="selected"</s:if>>加</option>
      		<option value="2" <s:if test="model.cal_type==2">selected="selected"</s:if>>减</option>
		</select>
      </td>
    </tr>
    <tr>
      <th width="16%" align="right">热表型号：</th>
      <td width="84%"><input name="model.meta_type" type="text" class="webinput" size="25" value="<s:property value='model.meta_type'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">管道口径：</th>
      <td width="84%">DN<input name="model.pipe_dia" type="text" class="webinput" size="25" dataType="Ftdfnum" require="false" msg="请用数字正确填写" value="<s:property value='model.pipe_dia'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">热表口径：</th>
      <td width="84%">DN<input name="model.meta_dia" type="text" class="webinput" size="25" dataType="Ftdfnum" require="false" msg="请用数字正确填写" value="<s:property value='model.meta_dia'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">生产厂家：</th>
      <td width="84%"><input name="model.prod_fac" type="text" class="webinput" size="25" value="<s:property value='model.prod_fac'/>"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">生产日期：</th>
      <td width="84%"><input name="model.prod_date" type="text" class="webinput" size="25" value="<s:date name='model.prod_date' format="yyyy-MM-dd" />" onclick="fPopCalendar(this);" readonly="readonly"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">安装日期：</th>
      <td width="84%"><input name="model.install_date" type="text" class="webinput" size="25" value="<s:date name='model.install_date' format="yyyy-MM-dd" />" onclick="fPopCalendar(this);" readonly="readonly"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">安装位置：</th>
      <td width="84%">
      	<select name="model.install_pos">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.install_pos==1">selected="selected"</s:if>>供水</option>
      		<option value="2" <s:if test="model.install_pos==2">selected="selected"</s:if>>回水</option>
		</select>
      </td>
    </tr>
    <tr>
      <th width="16%" align="right">安装环境：</th>
      <td width="84%">
      	<select name="model.install_env">
      		<option value="">请选择</option>
      		<option value="1" <s:if test="model.install_env==1">selected="selected"</s:if>>管井</option>
      		<option value="2" <s:if test="model.install_env==2">selected="selected"</s:if>>管沟</option>
      		<option value="3" <s:if test="model.install_env==3">selected="selected"</s:if>>设备间</option>
      		<option value="4" <s:if test="model.install_env==4">selected="selected"</s:if>>场站</option>
		</select>
      </td>
    </tr>
    <tr>
      <th width="16%" align="right">安装照片：</th>
      <td width="84%">
      	<c:if test="${not empty accessary}">
	    	<a href="${ctx}/${accessary.url }" target="_blank">${accessary.ac_sname }</a><br/>
	    </c:if>
        <input name="accList" type="file" class="webinput" size="25"/></td>
    </tr>
    <tr>
      <th width="16%" align="right">备注信息：</th>
      <td width="84%"><textarea id="textarea" name="model.demo" cols="60" rows="8"><s:property value='model.demo'/></textarea></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/commons/scripts/validator.js'></script> 
<script type="text/javascript">
$j(document).ready(function(){
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
